<?php

namespace app\error\controller;
use think\Controller;

class Index extends Controller
{
    // 路由丢失
    public function index()
    {
        $tpl = is_mobile() ? 'index_mobile' : 'index';
        return $this->fetch($tpl);
    }

    // 无权访问
    public function forbidden()
    {
        $tpl = is_mobile() ? 'forbidden_mobile' : 'forbidden';
        return $this->fetch($tpl);
    }
}